package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CharacterStringLiteral implements ExternalRoutineName, GeneralLiteral {

    private int beginIndex;
    private int endIndex;
    private boolean introducer;
    private CharacterSetName characterSetSpecification;
    private StringList stringList;

    public CharacterStringLiteral(int beginIndex,
                                  int endIndex,
                                  boolean introducer,
                                  CharacterSetName characterSetSpecification,
                                  StringList stringList) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.introducer = introducer;
        this.characterSetSpecification = characterSetSpecification;
        this.stringList = stringList;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public boolean isIntroducer() {
        return introducer;
    }

    public CharacterSetName getCharacterSetSpecification() {
        return characterSetSpecification;
    }

    public StringList getStringList() {
        return stringList;
    }

}
